/*
 * @description: 
 * @Author: Islands
 * @Date: 2024-06-14 22:33:48
 * @LastEditTime: 2024-06-23 02:48:42
 */

import { PropType } from "vue";
const validColors = ['primary', 'info', 'warning', 'danger', 'success', ''] as const;
type ButtonColorType = (typeof validColors)[number];

export const iconProps = {
  type: {
    type: String as PropType<ButtonColorType>,
    validator: (v: any) => validColors.includes(v),
    default: '',
  },
  color: { type: String, default: '' },
  icon: {
    type: String,
    default: '',
  },
  size: {
    type: [String, Number] as PropType<string | number>,
    default: '1.5rem',
  },
  title: { type: String },
  tooltipTitle: { type: String, default: '' },
  onClick:{type: Function as PropType< () => void>,default:null},
  
};